﻿<%@ Page Title="" Language="C#" Theme="Default_Themes" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="DSChuyenSinhHoatDoan.aspx.cs" Inherits="DanhMuc_DSChuyenSinhHoatDoan" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <asp:UpdatePanel ID="udt" runat="server">

        <ContentTemplate>
            <asp:Panel ID="pncontent" runat="server">
                <div class="row-fluid">
                    <div class="span12">
                        <div class="box">
                            <div class="box-title">
                                <h3><i class="icon-table"></i>Danh sách đoàn viên chuyển sinh hoạt đoàn: <%=st %> </h3>
                            <div class="box-tool">
                            </div>
                            </div>
                            <div class="box-content" style="border:1px solid #B6D1F2;">
                                <div class="btn-toolbar pull-right clearfix">
                                    <div class="btn-group">
                                        <asp:Button ID="Btn_xuatfile" runat="server" class="btn btn-inverse  " OnClick="ExporttoExcel" Text="Xuất file Excel" Width="112px" />

                                    </div>

                                    <br />

                                </div>
                                <div id="Div1" class="dataTables_wrapper form-inline" role="grid">
                                    </strong>
                                <div class="row-fluid">
                                    <asp:GridView ID="Grid_DSDV_Xoa" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" Width="100%" CellPadding="5" ForeColor="#333333" GridLines="None" Style="margin-top: 0px" CellSpacing="1" DataKeyNames="MaDoanVien" OnRowUpdating="Grid_DSDV_Xoa_RowUpdating" BorderStyle="Solid" BorderWidth="1px">
                                        <AlternatingRowStyle BackColor="White" />
                                        <Columns>
                                            <asp:TemplateField HeaderText="Chọn ">
                                                <HeaderTemplate>
                                                    <asp:CheckBox ID="chkselectAll" runat="server" OnCheckedChanged="chkInGridviewHeader_CheckedChanged" AutoPostBack="true" />
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <asp:CheckBox ID="chkchon" Enabled="true" Checked="false" runat="server" />
                                                </ItemTemplate>
                                                <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Mã Đoàn Viên">
                                                <ItemTemplate>
                                                     <asp:Label runat="server" ID="lblMaDoanVien" Text='<%#Eval("MaDoanVien") %>'></asp:Label>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Tên đoàn viên">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblTenDoanVien" runat="server" Text='<%#Eval("TenDoanVien") %>'></asp:Label>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Ngày sinh">
                                                <ItemTemplate>
                                                    <%#Eval("NgaySinh") %>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Phái">
                                                <ItemTemplate>
                                                    <%#Eval("Phai") %>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="Ngày chuyển đi">
                                                <ItemTemplate>
                                                    <%#Eval("NgayChuyenDi") %>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Đơn vị đi">
                                                <ItemTemplate>
                                                    <%#Eval("DonViChuyenDi") %>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Đơn vị đến">
                                                <ItemTemplate>
                                                    <%#Eval("DonViChuyenDen") %>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Xem chi tiết">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="linkbutton_xemchitiet" runat="server" CausesValidation="false" CommandName="Update"
                                                        Text="<i class='icon-zoom-in'></i> Chi tiết" ></asp:LinkButton>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                                            </asp:TemplateField>
                                        </Columns>
                                        <EditRowStyle BackColor="#2461BF" />
                                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                        <RowStyle BackColor="#EFF3FB" />
                                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                                    </asp:GridView>

                                </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </asp:Panel>
            <asp:Panel ID="pndetail" runat="server" Visible="false">
                <div class="row-fluid">
                    <div class="span12">
                        <div class="box">
                            <div class="box-title">
                                <h3><i class="icon-file"></i>Thông tin chi tiết đoàn viên</h3>
                                <div class="box-tool">
                                    <a data-action="collapse" href="#"><i class="icon-chevron-up"></i></a>
                                    <a data-action="close" href="#"><i class="icon-remove"></i></a>
                                </div>
                            </div>
                            <div class="box-content" style="border:solid 1px;">
                                <div class="row-fluid">
                                    <div class="span6">
                                        <div class="box">
                                            <div class="box-content">
                                                <div class="control-group info">
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Mã đoàn viên</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtMaDoanVien1" runat="server" ReadOnly="true" CssClass="textboxformat" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Họ và tên </label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtHoten1" runat="server" CssClass="textboxformat" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Giới tính </label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtgioitinh" runat="server" CssClass="textboxformat" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Ngày sinh </label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtngaysinh" runat="server" CssClass="textboxformat" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Số CMND</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtCMND" runat="server" CssClass="textboxformat" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Ngày cấp</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtngaycap" runat="server" CssClass="textboxformat" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Nơi cấp</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtNoiCap" runat="server" CssClass="textboxformat" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Nguyên quán</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtNguyenquan" runat="server" CssClass="textboxformat" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Thường trú</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtThuongTru" runat="server" CssClass="textboxformat" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Chổ ở hiện nay</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtHienNay" runat="server" CssClass="textboxformat" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Điện thoại</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtDienthoai" runat="server" CssClass="textboxformat" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Email</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtEmail" runat="server" CssClass="textboxformat" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Dân tộc</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtdantoc" runat="server" CssClass="textboxformat"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Tôn giáo</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txttongiao" runat="server" CssClass="textboxformat"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Hôn nhân</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txthonnhan" runat="server" CssClass="textboxformat"></asp:TextBox>
                                                    </div>
                                                    <div style="height:20px;"></div>
                                                    <div class="controls">
                                                        <asp:LinkButton ID="btnclose" Visible="true" runat="server" OnClick="btnclose_Click" class="btn  btn-danger" ><i class="icon-signout"></i> Đóng</asp:LinkButton>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="span6">
                                        <div class="box">
                                            <div class="box-content">
                                                <div class="control-group info">
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Thành phần gia đình xuất thân</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtXuatthan" runat="server" CssClass="texteareformat" TextMode="MultiLine" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Nghề nghiệp bản thân</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtNghenghiep" runat="server" CssClass="textboxformat" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Mô tả công việc</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtMota" runat="server" CssClass="texteareformat" TextMode="MultiLine" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Địa bàn dân cư</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtDiaBanDanCu" runat="server" CssClass="texteareformat" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Trình độ văn hóa</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txttrinhdo" runat="server" CssClass="textboxformat"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Trình độ chuyên mộn</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txttrinhdochuyenmon" runat="server" CssClass="textboxformat"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Đảng viên</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtdangvien" runat="server" CssClass="textboxformat"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Chức vụ đoàn</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtChucVuDoan" runat="server" CssClass="textboxformat"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Chuyên môn</label>
                                                    <div class="controls">
                                                        <fieldset>
                                                            <legend>Chuyên môn</legend>
                                                            <div style="float:left;text-align:right;width:30%;">
                                                                <div style="height:5px;"></div>
                                                                Bằng cấp 1:
                                                                <div style="height:10px;"></div>
                                                                Bằng cấp 2:
                                                                <div style="height:13px;"></div>
                                                                Ngoại ngữ:
                                                                <div style="height:13px;"></div>
                                                                Tin học:
                                                            </div>
                                                            <div style="float:right;width:68%;">
                                                                <asp:TextBox ID="txtbang1" runat="server" CssClass="textboxformat"></asp:TextBox>
                                                                <div style="height:5px;"></div>
                                                                <asp:TextBox ID="txtbang2" runat="server" CssClass="textboxformat"></asp:TextBox>
                                                                <div style="height:5px;"></div>
                                                                <asp:TextBox ID="txtngoaingu" runat="server" CssClass="textboxformat"></asp:TextBox>
                                                                <div style="height:5px;"></div>
                                                                <asp:TextBox ID="txttinhoc" runat="server" CssClass="textboxformat"></asp:TextBox>
                                                            </div>
                                                        </fieldset>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Tình hình sức khỏe</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtsuckhoe" runat="server" CssClass="textboxformat"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Ngày vào đoàn</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtngayvaodoan" runat="server" CssClass="textboxformat" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <label class="control-label" style="width:150px;padding-right:10px;">Phát triển mới/khác</label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtphattrienmoi" runat="server" CssClass="textboxformat" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <asp:Label ID="lblngaychuyen" runat="server" CssClass="control-label nhan" Text="Ngày chuyển đến"></asp:Label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtngaychuyenden" runat="server" CssClass="textboxformat" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                    </div>
                                                    <div style="height:5px;"></div>
                                                    <asp:Label ID="lbldonvicu" runat="server" CssClass="control-label nhan" Text="Đơn vị cũ"></asp:Label>
                                                    <div class="controls">
                                                        <asp:TextBox ID="txtDonViCu" runat="server" CssClass="textboxformat" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </asp:Panel>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="Btn_xuatfile" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>

     <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</asp:Content>

